<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>dhtmlXTree测试-左边部分</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    
    <link rel="STYLESHEET" type="text/css" href="css/dhtmlXTree.css">
	<script  src="js/dhtmlXCommon.js"></script>
	<script  src="js/dhtmlXTree.js"></script>
	
    <style>
		body {font-size:12px}
		.{font-family:arial;font-size:14px}
		h1 {cursor:hand;font-size:16px;margin-left:10px;line-height:10px}
		xmp {color:green;font-size:12px;margin:0px;font-family:courier;background-color:#e6e6fa;padding:2px}
		.hdr{
			background-color:lightgrey;
			margin-bottom:10px;
			padding-left:10px;
		}
	</style>
	<script language="Javascript">
			var tree = null;
			function onNodeSelect(nodeId){
				if(nodeId){
					//alert(nodeId);
					var the_id = nodeId.trim();
					var sUrl = "unitRight.html";
					parent.unitMainFrame.document.location = sUrl;
				}else {
					var sUrl = "PermMenu.do?method=edit";
					parent.unitMainFrame.document.location = sUrl;
				}
			}

			function doOnLoad(){
				tree=new dhtmlXTreeObject('tree_container',"100%","100%",0);
				tree.setImagePath("imgs/");
				tree.enableTreeLines(true);
				tree.loadXML("xml/tree5.xml");
				tree.setOnClickHandler(onNodeSelect);
				//tree.setImageArrays("plus","plus2.gif","plus3.gif","plus4.gif","plus.gif","plus5.gif");
				//tree.setImageArrays("minus","minus2.gif","minus3.gif","minus4.gif","minus.gif","minus5.gif");
				//tree.setStdImages("book.gif","books_open.gif","books_close.gif");	
			}
			String.prototype.trim = function()
			{
			   return this.replace(/(^\s+)|\s+$/g,"");
			}
			
			function doChange(){
				window.parent.unitBottomFrameSet.cols="0,*";
				window.parent.unitMainFrame.location = 'unitCommitteemanQuery.html';
				
			}
	</script>
  </head>
  
  <body onload="doOnLoad();">
   	<div id="tree_container" style="width:100%;height:100%;"></div>
  </body>
</html>
